package ai.mspbots.service.report.entity;

import cn.hutool.core.util.IdUtil;
import lombok.Data;

import java.io.Serializable;

@Data
public class ReportEntity implements Serializable {

    private Long id;

    private String name;

    private String type = "report";

    public static ReportEntity of(Long id) {
        ReportEntity reportEntity = new ReportEntity();
        reportEntity.setId(id);
        reportEntity.setName(IdUtil.randomUUID());
        return reportEntity;
    }
}
